import { createStore } from 'vuex'
import user from './modules/user'
import app from './modules/app'
// import { MAIN_COLOR } from '@/constant'
// import { getItem } from '@/utils/storage'
// import { generateColors } from '@/utils/theme'
export default createStore({
  state: {},
  getters: {
    token: (state) => state.user.token,
    userInfo: (state) => state.user.userInfo,
    hashUserInfo: (state) => {
      return JSON.stringify(state.user.userInfo) !== '{}'
    }
  },
  mutations: {},
  actions: {},
  modules: {
    user,
    app
  }
})
